<template>
  <view>
    <view class="cart-box">
      <view class="icon">
        <uni-icons type="shop" size="22"></uni-icons>
        店铺
      </view>
      <view class="icon">
        <uni-icons type="cart" size="20"></uni-icons>
        购物车
        <view class="i">
          2
        </view>
      </view>
      <view class="cart-txt">
        <text>加入购物车</text>
        <text>立即购买</text>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name:"my-cart",
    data() {
      return {
        
      };
    }
  }
</script>

<style scoped lang="scss">
.cart-box{
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  background-color: #fff;
}
.cart-txt{
    text-align: center;
    display: flex;
}
  text {
    width: 120px;
    height: 90%;
    color: #fff;
    font-size: 12px;
    line-height: 40px;
    display: block;
    border-radius: 25px 0 0 25px;
    background-color: #fd0005;
  }
  text:last-child {
    background-color: #fea402;
    border-radius: 0 25px 25px 0;
  }
  .icon{
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 10px;
    .i {
      position: absolute;
      padding: 0 3px;
      top: -3px;
      right: -3px;
      font-style: normal;
      background-color: #fd0005;
      color: #fff;
      border-radius: 50%;
    }
  }
</style>